]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ShellApp: Fix warning with call to g_strv_length()
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 7 Feb 2012 18:04:50 +0000 (13:04 -0500)
committerOwen W. Taylor <otaylor@fishsoup.net>
Tue, 7 Feb 2012 18:06:24 +0000 (13:06 -0500)
There is no implicit cast from const char * const * to char **.

src/shell-app.c

index 31d138534ae888ac86e9ee90c575906fe2471ec2..81c761b50b46d63834ef8961b5932108122fdc2b 100644 (file)
@@ -1322,7 +1322,7 @@ shell_app_init_search_data (ShellApp *app)
     {
       int i;
 
-      app->casefolded_keywords = g_new0 (char*, g_strv_length (keywords) + 1);
+      app->casefolded_keywords = g_new0 (char*, g_strv_length ((char **)keywords) + 1);
 
       i = 0;
       while (keywords[i])